{% extends "goalbase.html" %}

{% load i18n %}
{% load ifsetting_tag %}
{% load uni_form %}

{% block content %}
<fieldset class="module aligned ">
{% for field in goal_form %}
    <div class="form-row">
            <div class="field-box">
                {{ field.errors }}
                {{ field.label_tag }}: {{ field }}
            </div>
    </div>
{% endfor %}
</fieldset>

<fieldset class="module aligned ">
<h2>Plans</h2>
<table>
     <tr>
     {% for field in plan_formset.forms.0 %}
          {% if not field.is_hidden %}
               <th>{{ field.label }}</th>
          {% endif %}
     {% endfor %}
     </tr>
     {% for f in plan_formset.management_form %}
          {{ f }}
     {% endfor %}
     {% for f in plan_formset.forms %}
          <tr>
          {% for field in f %}
               {% if not field.is_hidden %}
                    <td>
                    {{ field.errors }}
                    {{ field }}
                    </td>
               {% else %}
                    <td valign="bottom">{{ field }}</
               {% endif %}
          {% endfor %}
          </tr>
     {% endfor %}
</table>
</fieldset>
 
{% endblock %}